package daily.securety

import daily.commons.Gender
import daily.core.Person

class Account {

    String name

    String showName

    String portraitType

    byte[] portrait

    Date birthday

    Gender gender = Gender.MALE

    String password

    Date dateCreated

    Date lastUpdated

    boolean disabled


    static mapping = {
        table "acounts"
        showName column: 'show_name'
    }


    static constraints = {
        name unique: true, blank: false, nullable: false
        password blank: false, nullable: false
    }
}
